/integration/:id/fields/template.csv
Downloads a ready-to-fill CSV template for bulk-mapping one integration, with one example row per field the caller can write. Use it as the starting point for a bulk upload; the filled rows are then sent as records to POST /v1/integration/{id}/mapping/validate and /apply (there is no CSV upload endpoint: the client parses the file).
- Permission:
ad_stack.view; the integration must be available to the caller (as forGET /v1/integration/{id}/fields), otherwise 404 (JSON error body). - Columns:
entity_type,entity_id,field,value. There is nointegration_idcolumn; the path decides the integration. - Rows come from the same catalogue as
GET /v1/integration/{id}/fields, in the same order, skipping read-only fields (computed defaults, owner-only fields for a non-owner, andapprovedfor a non-owner). - Every example row uses
entity_typepublisherwith an emptyentity_idto fill in. Changeentity_typeto any level listed in the field’slevels. valueis the first entry of the field’s schemaexamples(empty when there is none). Array values are a JSON array in one cell; booleans aretrue/false.- Response headers:
Content-Type: text/csv; charset=utf-8andContent-Disposition: attachment; filename="<Platform>-mapping-template.csv".
Authorizations
Path Parameters
Query Parameters
Optional publisher uid. When given, the integration is looked up among those available to this publisher's organisation (and its parents) instead of the caller's own. The publisher must exist and not be archived; a restricted (non-core) caller may only pass a publisher of their own organisation, otherwise 404 Not Found.
x >= 1Response
The CSV template.
CSV text with a header row and one example row per writable field.